]> dgit.raspbian.org Git - gnome-shell.git/commit
extensions-tool: Fix security warnings about format string injection
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Tue, 24 Jun 2025 06:59:21 +0000 (14:59 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Tue, 24 Jun 2025 06:59:21 +0000 (14:59 +0800)
commitff4fe62c91039b6533537744ee4c85dd80a1b922
tree9f077ada3471a80d2fe8ed7524a207ee16a7e619
parentf7258f9d3d89e6393424a86260b91dc908489722
extensions-tool: Fix security warnings about format string injection

Fixes:
```
../subprojects/extensions-tool/src/command-upload.c: In function ‘response_get_token’:
../subprojects/extensions-tool/src/command-upload.c:126:7: warning: format not a string literal and no format arguments [-Wformat-security]
  126 |       g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, msg);
      |       ^~~~~~~~~~~
../subprojects/extensions-tool/src/command-upload.c: In function ‘session_get_login_token’:
../subprojects/extensions-tool/src/command-upload.c:294:20: warning: format not a string literal and no format arguments [-Wformat-security]
  294 |                    detail ? detail : soup_status_get_phrase (status));
      |                    ^~~~~~
../subprojects/extensions-tool/src/command-upload.c: In function ‘session_upload_file’:
../subprojects/extensions-tool/src/command-upload.c:357:20: warning: format not a string literal and no format arguments [-Wformat-security]
  357 |                    detail ? detail : soup_status_get_phrase (status));
      |                    ^~~~~~
```

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3764>
subprojects/extensions-tool/src/command-upload.c